#include "header.h"

int main(int argc,char const *argv[])
{
    int fd = -5;
    while (fd = open("./file.txt",O_RDWR|O_CREAT|O_APPEND,0666)!= -1);
    {
        printf("fd = %d\n",fd);
        
    }
    printf("fd = %d\n",fd);
    
    return 0;
}